package cn.slt.service;

import java.util.List;

import cn.slt.domian.Category;

public interface CategoryService {
	List<Category> queryCategoryList(String firCode,String secCode);
	List<Category> getfirstlev();
	List<Category> getsecondlev(String firstcode);
	List<Category> queryZtree();
	Category getone(Category category);
	List<Category> queryFirstLevel();

	List<Category> querySecondLevel(String firCode);

	boolean isExistFirst(String firName);
	
	boolean isExistSecond(String firName, String secName);
	
	boolean isExistThird(String firName, String secName, String thiName);

	String queryMaxfirCode();
	
	String queryMaxSecCode(String firCode);
	
	String queryMaxThiCode(String firCode, String secCode);

	boolean addBatch(List<Category> li);

	boolean delFirst(String firCode);

	boolean delSecond(String firCode, String secCode);

	boolean delThird(String firCode, String secCode, String thiCode);
}
